package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.pojo.dto.RevocationApprovalFormDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.TPathApproverMapper;
import com.ruoyi.domain.TPathApprover;
import com.ruoyi.service.ITPathApproverService;

/**
 * 审批流程Service业务层处理
 * 
 * @author mzr
 * @date 2023-12-12
 */
@Service
public class TPathApproverServiceImpl implements ITPathApproverService 
{
    @Autowired
    private TPathApproverMapper tPathApproverMapper;

    /**
     * 查询审批流程
     * 
     * @param id 审批流程主键
     * @return 审批流程
     */
    @Override
    public TPathApprover selectTPathApproverById(Long id)
    {
        return tPathApproverMapper.selectTPathApproverById(id);
    }

    /**
     * 查询审批流程列表
     * 
     * @param tPathApprover 审批流程
     * @return 审批流程
     */
    @Override
    public List<TPathApprover> selectTPathApproverList(TPathApprover tPathApprover)
    {
        return tPathApproverMapper.selectTPathApproverList(tPathApprover);
    }

    /**
     * 新增审批流程
     * 
     * @param tPathApprover 审批流程
     * @return 结果
     */
    @Override
    public int insertTPathApprover(TPathApprover tPathApprover)
    {
        return tPathApproverMapper.insertTPathApprover(tPathApprover);
    }

    /**
     * 修改审批流程
     * 
     * @param tPathApprover 审批流程
     * @return 结果
     */
    @Override
    public int updateTPathApprover(TPathApprover tPathApprover)
    {
        return tPathApproverMapper.updateTPathApprover(tPathApprover);
    }

    /**
     * 批量删除审批流程
     * 
     * @param ids 需要删除的审批流程主键
     * @return 结果
     */
    @Override
    public int deleteTPathApproverByIds(Long[] ids)
    {
        return tPathApproverMapper.deleteTPathApproverByIds(ids);
    }

    /**
     * 删除审批流程信息
     * 
     * @param id 审批流程主键
     * @return 结果
     */
    @Override
    public int deleteTPathApproverById(Long id)
    {
        return tPathApproverMapper.deleteTPathApproverById(id);
    }


}
